<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>支付完成</title>
    <link rel="stylesheet" href="/shop/css/reset.css">
    <link rel="stylesheet" href="/shop/css/main.css?v=1">

</head>
<body>
<img src="/shop/images/ok.png" alt="支付完成" class="fuwan" />
<p class="fu-tips">支付完成</p>
<p class="fu-tips-timer">每日送餐时间{:getConfig('deliver_time')}</p>
<notempty name="coupon">
<p class="yao-tips">邀请好友，被邀请人关注后得<span>{$coupon['coupon_value']}</span>元，<br/>被邀请人下单后，邀请人得<span>{$coupon['coupon_value']}</span>元。</p>
<p class="quan">{$coupon['coupon_value']}元</p>
<!--<a class="fu-btn">邀请朋友</a>-->
</notempty>
<eq name="first" value="1">
<!-- 引导 -->
<div class="car-bg" style="display:block">
    <p class="yy-tips">戳这里邀请好友</p>
    <div class="yy-tips-tu"></div>
</div>
</eq>
</body>
<script type="text/javascript" src="/shop/js/zepto.min.js"></script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript">
    $('.car-bg').click(function () {
        $(this).hide();
    });

    wx.config({
        debug: false,
        appId: '{$signPackage["appId"]}',
        timestamp: {$signPackage["timestamp"]},
        nonceStr: '{$signPackage["nonceStr"]}',
        signature: '{$signPackage["signature"]}',
        jsApiList: [
            'checkJsApi',
            'onMenuShareTimeline',
            'onMenuShareAppMessage'
        ]
    });
    wx.ready(function () {
        wx.checkJsApi({
            jsApiList: [
                'onMenuShareTimeline',
                'onMenuShareAppMessage'
            ],
            success: function (res) {
               // alert(JSON.stringify(res));
            }
        });

        wx.onMenuShareAppMessage({
            title: '{$share["title"]}',
            desc: '{$share["desc"]}',
            link: '{$share["url"]}',
            imgUrl: '{$share["logo"]}',
            trigger: function (res) {
                //alert('点击发送给朋友');
            },
            success: function (res) {
                // alert('已分享');
            },
            cancel: function (res) {
                // alert('已取消');
            },
            fail: function (res) {
               // alert(JSON.stringify(res));
            }
        })

        wx.onMenuShareTimeline({
            title: '{$share["title"]}',
            link: '{$share["url"]}',
            imgUrl: '{$share["logo"]}',
            trigger: function (res) {
                // alert('点击分享到朋友圈');
            },
            success: function (res) {
                // alert('已分享');
            },
            cancel: function (res) {
                // alert('已取消');
            },
            fail: function (res) {
                // alert(JSON.stringify(res));
            }
        });
    });

</script>
</html>